home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-11-19 | 806 b | 41 lines |
- # @(#) Makefile for Typing Tutor.
- #
- Sources = ./source/tt.c \
- ./source/init.c \
- ./source/do_lesson.c \
- ./source/get_data.c
-
- Objects = ./object/tt.o \
- ./object/init.o \
- ./object/do_lesson.o \
- ./object/get_data.o
-
- Includes = ./include/externals.h ./include/tt.h
-
- Lesson = ./text/tt.text
- Libraries = -lcurses -lmalloc -lc
-
- CC = /bin/cc
- DEST = /usr/local/bin
- TEXT = /usr/local/lib
- CFLAGS = -O -c -I./include
-
- ${Objects}: ${Sources}
- ${CC} ${CFLAGS} ${Sources}
- mv *.o ./object
-
- ./bin/tt: ${Objects}
- ${CC} ${LDFLAGS} -o ./bin/tt ${Objects} ${Libraries}
-
- install:
- cp ./bin/tt ${DEST}
- cp ./text/tt.text $(TEXT}
-
- clean:
- rm -f ${Objects} core ./bin/tt
-
- ./source/tt.c: ./include/tt.h
- ./source/init.c: ${Includes}
- ./source/do_lesson.c: ${Includes}
- ./source/get_data.c: ${Includes}
-